import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import moment from 'moment'

import './plugins/element.js'
import 'assets/css/global.css'

// 导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// require styles  导入富文本编辑器对应的样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.config.productionTip = false

// 时间戳过滤器
Vue.filter('dataformat', (dataStr, patten = 'YYYY-MM-DD HH:mm:ss') => {
  return moment(dataStr * 1000).format(patten)
})

// 将富文本编辑器注册为全局可用组件
Vue.use(VueQuillEditor)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

